
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <ProbabilityLib.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(ProbabilityLib)
{
	TEST(probabilityEventAandEventB should be 0.08 with probabilitEventA 0.2 and probabilityEventB 0.4)
	{
		ProbabilityLib probability(0.2,0.4);
		ASSERT_EQ(8, 100*probability.getProbabilityEventAandEventB());
	}
	TEST(probabilityEventAorEventB should be 0.52 with probabilitEventA 0.2 and probabilityEventB 0.4)
	{
		ProbabilityLib probability(0.2,0.4);
		ASSERT_EQ(52*100, 100*probability.getProbabilityEventAorEventB()*100);
	}
	TEST(probabilityNoEventA should be 0.8 with probabilitEventA 0.2 and probabilityEventB 0.4)
	{
		ProbabilityLib probability(0.2,0.4);
		ASSERT_EQ(80, 100*probability.getProbabilityNoEventA());
	}

};
